// 1626View.h : interface of the C1626View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_1626VIEW_H__33FCDFE5_EDF0_443A_8DF6_A5FC42DD7959__INCLUDED_)
#define AFX_1626VIEW_H__33FCDFE5_EDF0_443A_8DF6_A5FC42DD7959__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



#include <stdio.h>
#include "Data.h"

class C1626View : public CScrollView
{
protected: // create from serialization only
	C1626View();
	DECLARE_DYNCREATE(C1626View)

// Attributes
public:
	C1626Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(C1626View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	CPoint InsertValue(char *value);
	CPoint DeleteValue();
	CPoint SetRightCaretPos(CPoint point);
	pNode GetCaretLine(CPoint pt);
	int GetMaxLine();
	int GetCaretPosition(CPoint pt);
	virtual ~C1626View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(C1626View)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnFileWrite();
	afx_msg void OnFileRead();
	afx_msg void OnEditFind();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnEditStatistics();
	//}}AFX_MSG
	afx_msg LONG OnFindReplace(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	CPoint m_ptCaret;
	CPoint m_ptUp;		
	CPoint m_ptDown;
	CData m_Data;
};

#ifndef _DEBUG  // debug version in 1626View.cpp
inline C1626Doc* C1626View::GetDocument()
   { return (C1626Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_1626VIEW_H__33FCDFE5_EDF0_443A_8DF6_A5FC42DD7959__INCLUDED_)
